package com.suifeng.mq.stock.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.suifeng.mq.stock.dao.StockOrderTaskDao;
import com.suifeng.mq.stock.entity.StockOrderTaskEntity;
import com.suifeng.mq.stock.service.StockOrderTaskService;
import org.springframework.stereotype.Service;

@Service
public class StockOrderTaskServiceImpl extends ServiceImpl<StockOrderTaskDao, StockOrderTaskEntity> implements StockOrderTaskService {

    @Override
    public StockOrderTaskEntity getStockOrderTaskByOrderSn(String orderSn) {
        return this.getOne(new LambdaQueryWrapper<StockOrderTaskEntity>().eq(StockOrderTaskEntity::getOrderSn, orderSn));
    }
}
